package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 平台消息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "blade_maintain_msg")
public class MaintainMsg extends TenantEntity {
    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 消息类型 1-项目关联申请
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 业务子分类: {
	 *     救援预警消息：1-即将超时到达 2-超时未到达
	 * }
     */
    @TableField(value = "b_type")
    private Integer bType;

    /**
     * 关联业务表id
     */
    @TableField(value = "other_id")
    private Long otherId;

	/**
	 * 权限code
	 */
	@TableField(exist = false)
	private String code;

	/**
	 * 接收消息的租户
 	 */
	@TableField(exist = false)
	private String receiveTenantId;
}
